<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<html>
<head>
<th:block th:include="include :: header('送审')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-censor-censor">
        
        	<input type="hidden" name="taskId" th:value="${taskId}">
        	
            <div class="form-group" >  
            
            	<div>  
	                <label class="col-sm-2 control-label">下一步骤：</label>
	                <div class="col-sm-4">
	                	 <select id="nextStep" name="nextStep" class="form-control m-b">
			                <option   th:each="node:${nodes}" th:value="${node}"  th:text="${node}" ></option>
			             </select>
	                </div>
                </div>
                
                <div>
                	 <label class="col-sm-2 control-label">审核人员：</label>
	                <div class="col-sm-4">
	                    <select id="assignee" name="assignee" class="form-control m-b">
			                 <option   th:each="assignee:${assignees}" th:value="${assignee.id}"  th:text="${assignee.name}" ></option>
			            </select>
	                </div>
                </div>
                
            </div>
            <div class="form-group" >
				<label class="col-sm-2 control-label">备注：</label>
				<div class="col-sm-10">
					<textarea name="opinion" class="form-control" rows="4" ></textarea>
				</div>
			</div>
        </form>
    </div>
	<th:block th:include="include :: footer" />
	
	<script th:src="@{/project/uflo/censor.js}"></script>
	
	<script th:inline="javascript">
	
	var prefix = ctx + "ufloTask";
	
	var taskId = [[${taskId}]];	
	
	var $form = $("#form-censor-censor");
	
	$form.validate({
       focusCleanup: true
   	});
	
	function submitHandler() {
		 if ($.validate.form()) {
             $.operate.save(prefix + "/censor", $form.serialize());
         }
       }
	
    </script>
	
</body>
</html>